package com.violet.uaa.server.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
* @Author: wqf
* @Date: 2024/09/04
* @Description:
*/
@Schema
@Data
@TableName(value = "s_login_log")
public class LoginLog {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键id")
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    @Schema(description="用户名")
    private String username;

    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @Schema(description="操作时间")
    private LocalDateTime operateTime;

    /**
     * IP地址
     */
    @TableField(value = "ip")
    @Schema(description="IP地址")
    private String ip;

    /**
     * 实际地址名
     */
    @TableField(value = "address")
    @Schema(description="实际地址名")
    private String address;

    /**
     * 操作描述
     */
    @TableField(value = "remark")
    @Schema(description="操作描述")
    private String remark;
}